using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using AjaxControlToolkit;

public partial class Admin_Default : System.Web.UI.Page
{
	protected void Page_Load(object sender, EventArgs e)
	{
		// Load the controls
		Admin_Controls_AddProject addProject =
			(Admin_Controls_AddProject)LoadControl(
			"~/Admin/Controls/AddProject.ascx");
		Admin_Controls_EditProjects editProjects =
			(Admin_Controls_EditProjects)LoadControl(
			"~/Admin/Controls/EditProjects.ascx");
		Admin_Controls_AddUser addUser =
			(Admin_Controls_AddUser)LoadControl(
			"~/Admin/Controls/AddUser.ascx");
		Admin_Controls_EditUsers editUsers =
			(Admin_Controls_EditUsers)LoadControl(
			"~/Admin/Controls/EditUsers.ascx");

		// Create the ajax panes
		AccordionPane projectPane = new AccordionPane();
		AccordionPane userPane = new AccordionPane();

		// Add the headers to the panes
		projectPane.HeaderContainer.Controls.Add(
			new LiteralControl("<a href=\"#\">Manage Projects</a>"));
		userPane.HeaderContainer.Controls.Add(
		    new LiteralControl("<a href=\"#\">Manage Users</a>"));

		// Add the controls to the panes
		projectPane.ContentContainer.Controls.Add(addProject);
		projectPane.ContentContainer.Controls.Add(editProjects);
		userPane.ContentContainer.Controls.Add(addUser);
		userPane.ContentContainer.Controls.Add(editUsers);

		// Add the panes to the accorian
		this.accMain.Panes.Add(projectPane);
		this.accMain.Panes.Add(userPane);
	}
}
